package com.yuoj.codesandbox.security;

import java.io.FileDescriptor;

public class MySecurityManager extends SecurityManager {
    @Override
    public void checkExec(String cmd) {
        throw new SecurityException("checkExec异常: " + cmd);
    }

    @Override
    public void checkRead(String file) {
        throw new SecurityException("checkRead: " + file);

    }

    @Override
    public void checkWrite(String file) {
        throw new SecurityException("checkWrite: " + file);
    }

    @Override
    public void checkDelete(String file) {
        throw new SecurityException("checkDelete: " + file);
    }

    @Override
    public void checkConnect(String host, int port) {
        throw new SecurityException("checkConnect: " + host + ":" + port);
    }
}
